package com.yesido.moshi.moshi23.single.lanhan;

import com.yesido.moshi.moshi23.single.ehan.SingleTon2;

/**
 * @author yesido
 * @description 双重检查锁
 * @date 2023-06-12 12:12
 * @Version 8.3
 */
public class SingleTon6 {
    private SingleTon6() {
    }

    private static volatile SingleTon6 instance;

    public static SingleTon6 getInstance() {
        if (instance == null) {
            synchronized (SingleTon6.class) {
                if (instance == null) {
                    instance = new SingleTon6();
                }
            }
        }
        return instance;
    }

}
